"""
仪表盘URL配置
"""
from django.urls import path, include
from . import views
from . import student_views
from . import teacher_views

app_name = 'dashboard'

urlpatterns = [
    # 基础统计接口
    path('overview/', views.overview_stats, name='overview_stats'),
    path('data/', views.overview_stats, name='dashboard_data'),  # 兼容前端API调用

    # 各模块统计接口
    path('students/employment-statistics/', views.student_employment_stats, name='student_employment_stats'),
    path('resume-management/statistics/', views.resume_stats, name='resume_stats'),
    path('interviews/statistics/', views.interview_stats, name='interview_stats'),
    path('jobs/statistics/', views.job_stats, name='job_stats'),

    # 趋势和活动接口
    path('monthly-trends/', views.monthly_trends, name='monthly_trends'),
    path('recent-activities/', views.recent_activities, name='recent_activities'),

    # 用户和角色统计
    path('auth/user-statistics/', views.user_role_stats, name='user_role_stats'),
    path('personalized-stats/', views.personalized_stats, name='personalized_stats'),

    # 管理员专用接口
    path('system-overview/', views.system_overview, name='system_overview'),
    path('auth/user-activity/', views.user_activity, name='user_activity'),
    path('system-metrics/', views.system_overview, name='system_metrics'),  # 兼容
    path('growth-trends/', views.growth_trends, name='growth_trends'),

    # 学生个人仪表盘接口
    path('students/my-statistics/', student_views.my_statistics, name='student_my_statistics'),
    path('resume-management/my-progress/', student_views.my_resume_progress, name='student_resume_progress'),
    path('interviews/my-history/', student_views.my_interview_history, name='student_interview_history'),
    path('jobs/my-applications-status/', student_views.my_applications_status, name='student_applications_status'),
    path('jobs/recommendations/', student_views.job_recommendations, name='job_recommendations'),

    # 教师仪表盘接口
    path('students/my-students-statistics/', teacher_views.my_students_statistics, name='teacher_students_stats'),
    path('resume-management/pending-reviews/', teacher_views.pending_reviews, name='teacher_pending_reviews'),
    path('interviews/monthly-schedule/', teacher_views.monthly_schedule, name='teacher_monthly_schedule'),
    path('students/employment-progress/', teacher_views.employment_progress, name='teacher_employment_progress'),
]
